#ifndef __OPERATION_MYSQL_H
#define __OPERATION_MYSQL_H

#include "stdio.h"
#include "stdint.h"
#include "rtthread.h"

uint16_t sql_pack(uint16_t cmd, uint8_t* in_buf, uint16_t in_len, uint8_t* out_buf);
uint16_t sql_insert(uint8_t* outbuf,uint8_t* table,uint8_t* name,uint8_t* phone,char age,char* pwd);
uint16_t sql_select(uint8_t* outbuf,uint8_t* row,uint8_t* table);
uint16_t sql_update(uint8_t* outbuf,uint8_t* table,uint8_t* row,uint8_t* new_val,uint8_t* key,uint8_t* val);
uint16_t sql_delete(uint8_t* outbuf,uint8_t* table,uint8_t* key,uint8_t* val);

#define SQL_INSERT  0x01
#define SQL_DELETE  0x02
#define SQL_UPDATE  0x03
#define SQL_SELECT  0x04
















#endif
